package com.glorysoft.xztpda.ui;

import android.content.Intent;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;

import com.glorysoft.xztpda.R;
import com.glorysoft.xztpda.base.Constant;
import com.glorysoft.xztpda.ui.login.LoginActivity;
import com.pda.platform.ui.ui_pdaplatform.entity.FreeUI_TabIndexGridEntity;
import com.pda.platform.ui.ui_pdaplatform.utils_public.FreeApi_DialogUtils;

import java.util.ArrayList;

/**
 * FileName: WebActivity
 * Author: XJH
 * Date: 2022/5/12 10:35
 * Description:
 * History:
 */
public class WebActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_web);
        String path = getIntent().getStringExtra("PATH");
        WebView web = findViewById(R.id.web);
        WebSettings settings = web.getSettings();
        settings.setJavaScriptEnabled(true);
        settings.setDomStorageEnabled(true);
//        web.setWebViewClient(new WebViewClient());
        web.loadUrl(path);
    }




}
